import { request, config } from 'utils'
const { api } = config
const { testSuites,products,modules } = api

export async function query (params) {
  return request({
    url: testSuites,
    method: 'get',
    data: {
      page:Number(params.page)||1,
      limit:10
    },
  })
}

export async function productquery (params) {
  return request({
    url: products,
    method: 'get',
    data: {
      page:1,
      limit:-1
    },
  })
}

export async function modulequery (params) {
	  return request({
	    url: modules,
	    method: 'get',
	    data: {
	      page:1,
	      limit:-1
	    },
	  })
	}
// export async function remove (params) {
//   return request({
//     url: product,
//     method: 'delete',
//     data: params,
//   })
// }
